| Conditions | 3 |
| Paths | 4 |
| Total Lines | 9 |
| Lines | 9 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | View Code Duplication | var RateLimit = /** @class */ (function () { |
|
| 2 | function RateLimit(calls, time, callsLeft, timeLeft) { |
||
| 3 | if (callsLeft === void 0) { callsLeft = calls; } |
||
| 4 | if (timeLeft === void 0) { timeLeft = time; } |
||
| 5 | this.originCalls = calls; |
||
| 6 | this.originTime = time; |
||
| 7 | this.currentCalls = callsLeft; |
||
| 8 | this.currentTime = timeLeft; |
||
| 9 | this.active = false; |
||
| 10 | } |
||
| 11 | RateLimit.prototype.reset = function () { |
||
| 47 | //# sourceMappingURL=ratelimit.js.map |